package com.miblog.domain;

import org.springframework.data.jpa.domain.AbstractPersistable;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;

/**
 * Created by liuzhengyang on 2015/4/6.
 */

@Entity
public class Post extends AbstractPersistable<Long> {
    @ManyToOne(fetch = FetchType.LAZY)
    private User user;


    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }
}
